﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XF.Meeting.Entity.DTO
{
   public class EmailEntity
    {
        /// <summary>
        /// 1 系统，2监听，3同步
        /// </summary>
        public int SourceType { get; set; }
        public int state { get; set; }
        public string changeKey { get; set; }
        /// <summary>
        /// 在母版页的第几条
        /// </summary>
        public int sort { get; set; }
        public string itemId { get; set; } = "";

        public int timelength { get; set; }
        public bool Iszhouqi { get; set; }
        /// <summary>
        /// 会议室ID
        /// </summary>
        public int CRoomID { get; set; }
        /// <summary>
        /// 会议ID
        /// </summary>
        public string ID { get; set; }
       
        /// <summary>
        /// 会议标题
        /// </summary>
        public string Subject { get; set; } = "";
        /// <summary>
        /// 创建人
        /// </summary>
        public string Organizer { get; set; } = "";
        /// <summary>
        /// 会议内容
        /// </summary>
        public string Body { get; set; } = "";
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime Start { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime End { get; set; }
        /// <summary>
        /// 更新前开始时间
        /// </summary>
        public DateTime OldStart { get; set; }
        /// <summary>
        /// 更新前结束时间
        /// </summary>
        public DateTime OldEnd { get; set; }
        /// <summary>
        /// 会议地点
        /// </summary>
        public string Location { get; set; } = "";
        public string MasterId { get; set; } = "";
        /// <summary>
        /// 与会人员（含会议室邮箱）
        /// </summary>
      //  public AttendeeCollection Attendees { get; set; }
        public List<Attendeee> AttendeesList { get; set; } = new List<Attendeee>();

        public string CRoomIDs { get; set; } = "";
        public string ParticipantIDs { get; set; } = "";
        public int CreateID { get; set; } 
        
        public string CycleMeetGuid { get; set; } = new Guid().ToString();
        public bool IsRecurring { get; set; } = false;
        /// <summary>
        /// 1 单次，2周，3双周，4月，5 exchange周期天，6周期 周，7周期月，8周期天
        /// </summary>
        public int CycleMeetType { get; set; } = 1;
    }
    public class Attendeee
    {
        public Attendeee(string address, string name)
        {
            Address = address;
            Name = name;
        }
        public string Address { get; set; }
        public string Name { get; set; }
      
    }
}
